CONTAINER_NAME=chatgpt-web
IMAGE_NAME=jzzzb/chatgpt-web:1.0
PORT=3000

echo "容器部署开始 ${CONTAINER_NAME}"

# 停止容器
docker stop ${CONTAINER_NAME}

# 删除容器
docker rm ${CONTAINER_NAME}

# 启动容器
docker run -d -p ${PORT}:${PORT} \
--name ${CONTAINER_NAME} \
${IMAGE_NAME}

echo "容器部署成功 ${CONTAINER_NAME} !"

docker logs -f ${CONTAINER_NAME}

